package com.lanqiao.javaparkinglot.service.impl;

import com.lanqiao.javaparkinglot.dao.DriverhsDao;
import com.lanqiao.javaparkinglot.entity.Driverhs;
import com.lanqiao.javaparkinglot.service.DriverhsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class DriverhsServiceImpl implements DriverhsService {

    @Autowired
    DriverhsDao driverhsDao;
    @Override
    public List<Driverhs> findsjhs() {
        List<Driverhs> driverhsList =driverhsDao.findsjhs();
        return driverhsList;
    }

    @Override
    public void addsjhs(Driverhs driverhs) {
        driverhsDao.addsjhs(driverhs);
    }

    @Override
    public void updatesjhs(Driverhs driverhs) {
        driverhsDao.updatesjsh(driverhs);
    }

    @Override
    public void deletesjhs(Long hss_id) {
        driverhsDao.deletesjhs(hss_id);
    }
}
